package com.etoak.train.req;

import jakarta.validation.constraints.Pattern;
import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

/**
 * @Author by 孙有泽
 * @Date 2025/5/10 10:46
 * @Description 发送短信请求
 */
@Data
public class MemberSendCodeReq {

    @NotBlank(message = "【手机号】不能为空")
    @Pattern(regexp = "^\\d{10}$",message = "手机号码格式错误")
    private String mobile;
}
